package com.mycode.service;

import com.mycode.domain.Payment;
import com.mycode.domain.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by Zengsh123 on 2020/3/11.
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {
    @GetMapping("/payment/get/{id}")
    public ResponseResult<Payment> get(@PathVariable("id") Long id);
}
